package miiteen.demo.web.beans;

import com.fasterxml.jackson.annotation.JsonFormat;
import miiteen.common.utils.FieldMeta;
import miiteen.sys.base.bean.BasePo;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class CustomsMediaInfo extends BasePo {

    @FieldMeta(name = "ID")
    private String id;

    @FieldMeta(name = "主题")
    private String subject;

    @FieldMeta(name = "媒体类型id")
    private String mediaTypeId;

    @FieldMeta(name = "加急等级")
    private int emergency;

    @FieldMeta(name = "SN年份")
    private int snYear;

    @FieldMeta(name = "SN编号")
    private int snNo;

    @FieldMeta(name = "起草人ID")
    private String draftPersonId;

    @FieldMeta(name = "起草人姓名")
    private String draftPersonName;

    @FieldMeta(name = "起草人单位ID")
    private String draftDeptId;

    @FieldMeta(name = "起草人单位名称")
    private String draftDeptName;


    @FieldMeta(name = "起草时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date draftDate;



    @FieldMeta(name = "完成时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date completeDate;

    @FieldMeta(name = "导读内容")
    private String summary;

    /*
     *辅助字段
     */
    @FieldMeta(name = "类型名称")
    private String mediaTypeName;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getMediaTypeId() {
        return mediaTypeId;
    }

    public void setMediaTypeId(String mediaTypeId) {
        this.mediaTypeId = mediaTypeId;
    }

    public int getEmergency() {
        return emergency;
    }

    public void setEmergency(int emergency) {
        this.emergency = emergency;
    }

    public int getSnYear() {
        return snYear;
    }

    public void setSnYear(int snYear) {
        this.snYear = snYear;
    }

    public int getSnNo() {
        return snNo;
    }

    public void setSnNo(int snNo) {
        this.snNo = snNo;
    }

    public String getDraftPersonId() {
        return draftPersonId;
    }

    public void setDraftPersonId(String draftPersonId) {
        this.draftPersonId = draftPersonId;
    }

    public String getDraftPersonName() {
        return draftPersonName;
    }

    public void setDraftPersonName(String draftPersonName) {
        this.draftPersonName = draftPersonName;
    }

    public String getDraftDeptId() {
        return draftDeptId;
    }

    public void setDraftDeptId(String draftDeptId) {
        this.draftDeptId = draftDeptId;
    }

    public String getDraftDeptName() {
        return draftDeptName;
    }

    public void setDraftDeptName(String draftDeptName) {
        this.draftDeptName = draftDeptName;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date getDraftDate() {
        return draftDate;
    }

    public void setDraftDate(Date draftDate) {
        this.draftDate = draftDate;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date getCompleteDate() {
        return completeDate;
    }

    public void setCompleteDate(Date completeDate) {
        this.completeDate = completeDate;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getMediaTypeName() {
        return mediaTypeName;
    }

    public void setMediaTypeName(String mediaTypeName) {
        this.mediaTypeName = mediaTypeName;
    }
}
